package com.itheima.day16.classLoader.test1;

import java.io.InputStream;

public class Test {
    public static void main(String[] args) {
        // 获取系统类加载器
        ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
        // 获取平台类加载器
        ClassLoader parent1 = systemClassLoader.getParent();
        // 获取启动类加载器
        ClassLoader parent2 = parent1.getParent();


        System.out.println("系统类加载器 --- " + systemClassLoader); // jdk.internal.loader.ClassLoaders$AppClassLoader@78308db1
        System.out.println("平台类加载器 --- " + parent1); // jdk.internal.loader.ClassLoaders$PlatformClassLoader@27973e9b
        System.out.println("启动类加载器 --- " + parent2); // null
    }
}
